package wqh.controller.view;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by devts on 2017/1/5.
 */
@Controller
@CrossOrigin(origins = "*")
@RequestMapping(value = "/")
public class MainView {

    private static Logger logger = LoggerFactory.getLogger(MainView.class);

    @RequestMapping(value = "")
    public ModelAndView index(){
        ModelAndView m = new ModelAndView("map_config");
        return m;
    }

    @RequestMapping(value = "/map_config")
    public ModelAndView map_config(){
        return new ModelAndView("map_config");
    }

    @RequestMapping(value = "/xk_map_show")
    public ModelAndView xk_map_show(){
        return new ModelAndView("xk_map_show");
    }

    @RequestMapping(value = "/water_map_show")
    public ModelAndView water_map_show(){
        return new ModelAndView("water_map_show");
    }

    @RequestMapping(value = "/water_analysis_report")
    public ModelAndView water_analysis_report(){
        return new ModelAndView("water_analysis_report");
    }

    @RequestMapping(value = "/xk_monitor_map")
    public ModelAndView xk_monitor_map(){
        return new ModelAndView("xk_monitor_map");
    }

    @RequestMapping(value = "/water_channel_map")
    public ModelAndView water_channel_map(){
        return new ModelAndView("water_channel_map");
    }

}
